package dialogs;

/**
 * Created by Administrator on 2017/10/26.
 */

import android.content.Context;
import android.os.Bundle;
import android.widget.TextView;

import com.example.administrator.newxlmedical.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import custom.MyDialog;

public class ProgressDialog extends MyDialog {
    @BindView(R.id.tv_dialog_progress)
    TextView tvTitle;
    private String title;

    public ProgressDialog(Context context, int theme, String title) {
        super(context, theme);
        this.title = title;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dialog_progress);
        ButterKnife.bind(this);
        //设置不可取消，点击其他区域不能取消
        setCancelable(false);
        setCanceledOnTouchOutside(false);
        tvTitle.setText(title);
    }
}
